<div class="widget-inner es_calc_container layout_<?php echo $layout?>">    <?php if ( $title ) { ?>    	<h1 class="es_calc_title"><?php echo "$before_title{$title}$after_title"; ?></h1>    <?php } ?>    <form class="es_calc_form">        <input type="hidden" id="es_calc_decimals" value="<?php echo $decimals?>" />        <input type="hidden" id="es_calc_decimalpoint" value="<?php echo $decimalpoint?>" />        <input type="hidden" id="es_calc_separator" value="<?php echo $separator?>" />      	        <div class="es_calc_option">            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('Purchase price', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('Please enter here the amount you expect to pay for a home.', 'es-calc') ?>                    </div>                                  </div>            </div>            <span class="es_calc_currency"><?php echo $settings->currency ?></span>            <input type="text" id="es_calc_purchase_price" class="es_calc_input"                 value="<?php echo number_format($settings->default_purchase_price,                     $decimals, $decimalpoint, $separator) ?>" />            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="<?php echo $settings->max_purchase_price?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_purchase_price?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="0" /> -->                <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>        <div class="es_calc_option <?php if ( $settings->down_payment != 'on' ) echo 'es_calc_hidden_option' ?>" >            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('Down payment', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('Down payment is cash that you pay upfront for your home.', 'es-calc') ?>                    </div>                                  </div>            </div>            <span class="es_calc_currency"><?php echo $settings->currency ?></span>            <input type="text" id="es_calc_down_payment" class="es_calc_input"                 value="<?php echo number_format($settings->default_down_payment,                     $decimals, $decimalpoint, $separator) ?>" />            <div type="text" id="es_calc_down_payment_percent" class="es_calc_percent">                <span><?php echo number_format(                    $settings->default_down_payment/$settings->default_purchase_price * 100, 1) ?></span>%            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max" id="es_calc_down_payment_max"                    value="<?php echo $settings->default_purchase_price?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_down_payment?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="0" /> -->                <input type="text" class="es_calc_rangeslider" value="" id="es_calc_down_payment_rangeslider" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>    	<div class="es_calc_option">    		<div class="es_calc_option_title">    			<div class="es_calc_option_name"><?php _e('Term in years', 'es-calc') ?></div>    			<div class="es_calc_option_info_icon">	    			<div class="es_calc_option_info">		    			<div class="es_calc_option_arrow"></div>	    				<?php _e('Number of years you have to pay.', 'es-calc') ?>	    			</div>    				    			</div>    		</div>            <input type="text" id="es_calc_term" class="es_calc_input"                 value="<?php echo number_format($settings->default_term) ?>" />      		<div type="text" id="down_payment_percent" class="es_calc_percent">                <?php _e('years', 'es-calc') ?>            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="<?php echo $settings->max_term?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_term?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="0" /> -->			    <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>    	</div>        <div class="es_calc_option">            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('Interest rate (per year)', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('The percentage of interest that you will pay on your mortgage for a specific term.', 'es-calc') ?>                    </div>                                  </div>            </div>            <input type="text" id="es_calc_interest_rate" class="es_calc_input"                 value="<?php echo number_format($settings->default_interest_rate,                     $decimals, $decimalpoint, $separator) ?>" />            <div type="text" class="es_calc_percent">                %            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="100" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_interest_rate?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="1" /> -->                <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>        <div class="es_calc_option <?php if ( $settings->property_tax != 'on' ) echo 'es_calc_hidden_option' ?>">            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('Property tax', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('Enter your property tax here if you know it.', 'es-calc') ?>                    </div>                                  </div>            </div>            <span class="es_calc_currency"><?php echo $settings->currency ?></span>            <input type="text" id="es_calc_property_tax" class="es_calc_input"                 value="<?php echo number_format($settings->default_property_tax,                     $decimals, $decimalpoint, $separator) ?>" />            <div type="text" class="es_calc_percent">                <?php _e('per year', 'es-calc') ?>            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="<?php echo $settings->max_property_tax?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_property_tax?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="1" /> -->                <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>        <div class="es_calc_option             <?php if ( $settings->home_insurance != 'on' ) echo 'es_calc_hidden_option' ?>">            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('Home insurance', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('Most lenders require home insurance. Enter its price here.', 'es-calc') ?>                    </div>                                  </div>            </div>            <span class="es_calc_currency"><?php echo $settings->currency ?></span>            <input type="text" id="es_calc_home_insurance" class="es_calc_input"                 value="<?php echo number_format($settings->default_home_insurance,                     $decimals, $decimalpoint, $separator) ?>" />            <div type="text" class="es_calc_percent">                <?php _e('per year', 'es-calc') ?>            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="<?php echo $settings->max_home_insurance?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_home_insurance?>" />                <!-- <input type="hidden" class="es_calc_rangeslider_tenths" value="1" /> -->                <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>        <div class="es_calc_option <?php if ( $settings->pmi != 'on' ) echo 'es_calc_hidden_option' ?>">            <div class="es_calc_option_title">                <div class="es_calc_option_name"><?php _e('PMI', 'es-calc') ?></div>                <div class="es_calc_option_info_icon">                    <div class="es_calc_option_info">                       <div class="es_calc_option_arrow"></div>                        <?php _e('PMI is Private Mortgage Insurance which is usually required to pay if your Down payment less than 20%.', 'es-calc') ?>                    </div>                                  </div>            </div>            <span class="es_calc_currency"><?php echo $settings->currency ?></span>            <input type="text" id="es_calc_pmi" class="es_calc_input"                 value="<?php echo number_format($settings->default_pmi,                     $decimals, $decimalpoint, $separator) ?>" />            <div type="text" class="es_calc_percent">                <?php _e('per month', 'es-calc') ?>            </div>            <div class="es_calc_rangeslider_container">                <input type="hidden" class="es_calc_rangeslider_max"                     value="<?php echo $settings->max_pmi?>" />                <input type="hidden" class="es_calc_rangeslider_default"                     value="<?php echo $settings->default_pmi?>" />                <input type="text" class="es_calc_rangeslider" value="" />                 <div class="es_calc_error_info"><?php _e('Enter a value', 'es-calc') ?></div>            </div>        </div>        <input class="btn marB10 es_calc_submit" type="submit" id="mortgageCalc"            value="<?php _e('Calculate', 'es-calc') ?>" onclick="return false"/>        <div id="ecPaymentResult" class="muted monthly-payment" style="display:none;">        	Your total monthly payment:         	<strong>        		<?php echo $currency; ?>        		<span id="ecPayment"></span>    		</strong>		</div>    </form>    <?php include_once("es_calc_popup_{$settings->select_popup}.php"); ?></div>